<?php
if (!defined('BASEPATH'))exit('No direct script access allowed');

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class admin_home extends CI_Controller {
    function __construct() {
        parent::__construct();
        $this->load->model('admin_model', 'm_admin', TRUE);
        $this->load->model('model_member', 'm_member', TRUE);
        $this->load->model('model_kasus', 'm_kasus', TRUE);
    }
    
    function index(){
        if(!$this->session->userdata('admin_user')){
            redirect("admin_ippi","refresh");
        }
        else{
            $data = array(
                'web_title' =>  'ADMIN Web I P P I',
                'main_view' =>  'mimin/home/index',
                "total_member"  =>  $this->m_member->get_all()->num_rows(),
                "total_kasus"   =>  $this->m_kasus->get_all()->num_rows()
            );
            $this->load->view('mimin/template/template_home',$data);
        }
    }
}

/* End of file admin_home.php */
/* Location: ./application/controllers/admin_home.php */